Repository navigation
Ignore Django SQLite WAL files in the Python template - #4947
Merged
Merged
Conversation
Assisted-by: OpenAI Codex
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The update adds the missing Django SQLite WAL and shared-memory ignore patterns while preserving the existing database and rollback-journal rules, with no active review issues identified.
No open issues 🎉
What changed in this PR
Updates the Python gitignore template to exclude Django SQLite write-ahead logging companion files while preserving the existing database and rollback-journal rules.
Changes:
- Adds exact ignore patterns for
db.sqlite3-walanddb.sqlite3-shm. - Keeps the additions alongside the existing Django SQLite entries.
| File | Description |
|---|---|
| Python.gitignore | Adds exact ignore entries for Django SQLite WAL and shared-memory files. |
Review effort: Lite (adaptive)
dooleydevin
approved these changes
Nov 24, 2026
dooleydevin
left a comment
Collaborator
There was a problem hiding this comment.
Thank you for the contribution!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link to the application or project's homepage
Django
Reasons for making this change
The Python template already ignores Django's default SQLite database and its rollback journal. With write-ahead logging enabled, SQLite creates the companion files
db.sqlite3-walanddb.sqlite3-shm. Git currently lists both as untracked while the database is open. Add the two exact basenames alongside the existing Django entries.Verified on Windows with an open SQLite WAL connection. Before the change,
git check-ignorereturned 1 for both generated files. After the change, it returned 0 for both. The database and rollback-journal rules still matched, and a differently named WAL file remained eligible for tracking.Links to documentation supporting these rule changes
Merge and Approval Steps
Prepared and tested with OpenAI Codex. The account owner authorized submission.